package com.alibaba.citrus.cr.price.ability.functions.entity.activity;

import java.util.Map;

/**
 * @author: myw
 * @create: 2022/08/31
 * @Description 自定义存储是否保存活动
 */
public class ActivitySaveFlagThreadLocal {
    private static ThreadLocal<Boolean> threadLocal = new ThreadLocal<>();

    /**
     * 获取 Boolean
     *
     * @return Boolean
     */
    public static Boolean get() {
        return threadLocal.get();
    }

    /**
     * 清空 Boolean
     */
    public static void clear() {
        threadLocal.remove();
    }

    public static void set(Boolean chooseFlag){
        threadLocal.set(chooseFlag);
    }


}
